how to solve rational equation